//
//  AVPlayerManger.h
//  BLDMusics
//
//  Created by lxd on 16/3/19.
//  Copyright © 2016年 李晓丹. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AVPlayerManger : NSObject

/**播放器对象*/
@property (nonatomic, retain) AVPlayer *audioPlayer;

/**当前播放项目的总时间*/
@property (nonatomic, assign) CGFloat totalDuration;

/**当前已经播放的时间*/
@property (nonatomic, assign) CGFloat progressDuration;

@property (nonatomic, assign) BOOL isPlaying;

/**
 *  记录点击的哪个item
 */
@property (nonatomic, assign) NSInteger row;
@property (nonatomic, assign) NSInteger section;

+ (AVPlayerManger *)shareplayer;


/**创建播放项目*/
- (void)playWithUrl:(NSString *)url;

/**暂停播放*/
- (void)pause;


@end
